# -*- coding: utf-8 -*-
#  @author  Bink
#  @date  2020/8/29 15:47
# @Email : 2641032316@qq.com


# method1
print('1到100以内的6的倍数的和: %d' % sum(filter(lambda x: x % 6 == 0, range(1, 101))))

# method2
sum1 = 0
for i in range(1, 101):
    if i % 6 == 0:
        sum1 += i
else:
    print('1到100以内的6的倍数的和: %d' % sum1)
